//
//  MenuScreen.h
//  match2
//
//  Created by Tri Vo on 7/8/13.
//
//

#ifndef __match2__MenuScreen__
#define __match2__MenuScreen__

#include <iostream>
#include "cocos2d.h"
#include "GameController.h"
#include "AboutScreen.h"
#include "SQLiteManager.h"
#include "GameScreen.h"
#include "GuideScreen.h"
#include "GeneralDef.h"
#include "SoundManager.h"

class MenuScreen : public cc::CCLayer {
private:
    void exitGame(cocos2d::CCObject *sender) {
        SoundManager::getInstance()->playSound(SOUND_MENU_CLICK, false);
        cocos2d::CCDirector::sharedDirector()->end();
        
    #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
        exit(0);
    #endif
    }
public:
    virtual bool init();
    
    static cc::CCScene *scene();
    
    CREATE_FUNC(MenuScreen);
    void enterAboutScreen(cc::CCObject *sender);
    void enterGameScreen(cc::CCObject *sender);
    void enterGuideScreen(cc::CCObject *sender);
};

#endif /* defined(__match2__MenuScreen__) */
